<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type"
    content="text/html;charset=UTF-8" />
  <meta name="description" content="high-volume photo narration" />
  <title><%= h("ricecarbs.net") %></title>
  <link rel="shortcut icon" href="<%= "/images/favicon.ico" %>" />
  <%= javascript_include_tag 'prototype' %>
  <% for script in @custom_scripts %>
    <%= javascript_include_tag script %>
  <% end %>
  <%= stylesheet_link_tag 'application' %>
  <% for stylesheet in @custom_stylesheets %>
    <%= stylesheet_link_tag stylesheet %>
  <% end %>
</head>
<body>
  <div id="container">
    <div id="site_header">
      <div id="site_title">
        <h1><a href="http://<%= request.domain << ":" << request.port.to_s %>">ricecarbs.net</a></h1>
      </div>
      <div id="site_tagline">high-volume<br />photo narration
      </div>
      <div id="user_nav">
      <% if current_user %>
        <%= link_to "Edit Profile", edit_user_path(:current) %> | 
        <%= link_to "Logout", logout_path %>
      <% else %>
        <%= link_to "Register", new_user_path %> | 
        <%= link_to "Login", login_path %>
      <% end %>
      </div>
    </div>
    <div id="yield">
      <div id="site_nav">
        <% for trace in @trace_nav %>
          <%= link_to trace[:label], trace[:path] %> &lt; 
        <% end %>
      </div>
      <div id="flash">
        <span id="notice"><%= flash[:notice] %></span> 
        <span id="error"><%= flash[:error] %></span>
      </div>
      <%= yield %>
    </div>
  </div>
</body>
</html>
